package com.example.base.http.exception;


public class ApiException extends Exception {
    public int code;
    public String message;

    public ApiException(Throwable throwable, int code) {
        super(throwable);
        this.message = throwable.getMessage();
        this.code = code;
    }

    public ApiException(String message) {
        this.message = message;
    }
}
